home *** CD-ROM | disk | FTP | other *** search
- /*
- File: wwFAccess.c
-
- Copyright: © 1991-1994 by Apple Computer, Inc.
- All rights reserved.
-
- Part of the AOCE Sample SMSAM Package. Consult the license
- which came with this software for your specific legal rights.
-
- */
-
-
-
- #ifndef __TYPES__
- #include <Types.h> // for Boolean, StringPtr types
- #endif
-
- #ifndef __OSUTILS__
- #include <OSUtils.h> // for EqualString
- #endif
-
- #ifndef THINK_C
- #ifndef __STRINGS__
- #include <Strings.h> // for p2cstr
- #endif
- #else
- #include <Pascal.h>
- #endif
-
- long wwFAccess(char* fName, long opCode, long a)
- {
- Boolean result;
-
- if (opCode != 0x6400)
- return -1;
-
- c2pstr(fName);
- result = EqualString((StringPtr)fName, "\pDev:Console", false, true);
- p2cstr((StringPtr)fName);
-
- return (result) ? 0 : -1;
- }
-